package org.jeecg.modules.xindian.reconciliation.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.xindian.reconciliation.controller.req.UnCheckQuery;
import org.jeecg.modules.xindian.reconciliation.controller.rsp.UnCheckPolicyInfo;
import org.jeecg.modules.xindian.reconciliation.entity.PolicySettlementTypeStatistics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Description: 结算类型汇总保单关联
 * @Author: jeecg-boot
 * @Date:   2024-06-24
 * @Version: V1.0
 */
public interface PolicySettlementTypeStatisticsMapper extends BaseMapper<PolicySettlementTypeStatistics> {
    void deleteChannelSettlementInfo(@Param("settlementId") String settlementId);
    void deleteChannelOtherSettlementInfo(@Param("settlementId") String settlementId, @Param("policyNos") List<String> policyNo);
    void deleteSalesmanSettlementInfo(@Param("settlementId") String settlementId);
    void cleanInsuranceSettlementInfo(@Param("settlementId") String settlementId);

    Page<UnCheckPolicyInfo> queryUncheckInfoList(Page page, @Param("qa")UnCheckQuery policyInfoe);
    List<UnCheckPolicyInfo> queryUncheckInfoListNoPage(@Param("qa")UnCheckQuery policyInfoe);
    Integer  queryUncheckTotal(@Param("date")String date);

    Integer cleanUnCheckInfo(@Param("id") String id,@Param("policyNo")String policyNo);

}
